package cn.ac.registAService.model;

import java.util.Date;

/** 
 * 资源组织信息
 * @author  yangzhong  E-mail: zyang@ceode.ac.cn
 * @version 1.0
 * @date    2012-9-28 下午3:34:06 
 * @fuction 资源组织用户类，继承自用户类
 */

public class User  
{
	//---------------------------------------------------------------------------
	//---
	//--- 属性
	//---
	//---------------------------------------------------------------------------

	/**
	 * 计算服ID标识号
	 */
	private int id;
	//密码
	private String password=null;
    //用户类型(枚举值：超级管理员superManager，管理员manager，资源组织organizator，普通用户normal)
	private String userType=null;
	//注册时间
	private Date  addDate=null;
	//修改时间
	private Date modifyDate=null;
	
	//---------------------------------------------------------------------------
	//---
	//--- 下列属性同时作为资源元数据中资源组织信息
	//---
	//---------------------------------------------------------------------------

	//组织名称			
	private String organisationName=null;
	//负责人姓名
	private String individualName=null;
	//联系电话	
	private String voice=null;
	//详细地址		
	private String deliveryPoint=null;
	//城市（兰州市）		
	private String city=null;
	//行政区域(甘肃省)		
	private String administrativeArea=null;
	//邮政编码			
	private String postalCode=null;
	//国家/组织所在地	
	private String country=null;
	//电子邮件(作为登录时候的用户名)
	private String electronicMailAddress=null;
	//职责(资源维护者originator)	默认
	private String role=null;

	//---------------------------------------------------------------------------
	//---
	//--- get和set方法
	//---
	//
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getOrganisationName() {
		return organisationName;
	}

	public void setOrganisationName(String organisationName) {
		this.organisationName = organisationName;
	}

	public String getIndividualName() {
		return individualName;
	}

	public void setIndividualName(String individualName) {
		this.individualName = individualName;
	}

	public String getVoice() {
		return voice;
	}

	public void setVoice(String voice) {
		this.voice = voice;
	}

	public String getDeliveryPoint() {
		return deliveryPoint;
	}

	public void setDeliveryPoint(String deliveryPoint) {
		this.deliveryPoint = deliveryPoint;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAdministrativeArea() {
		return administrativeArea;
	}

	public void setAdministrativeArea(String administrativeArea) {
		this.administrativeArea = administrativeArea;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getElectronicMailAddress() {
		return electronicMailAddress;
	}

	public void setElectronicMailAddress(String electronicMailAddress) {
		this.electronicMailAddress = electronicMailAddress;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}
	
	
	//---------------------------------------------------------------------------
	//---
	//--- Constructor
	//---
	//---------------------------------------------------------------------------


	@Override
	public String toString() {
		return "User [id="+id+",password=" + password + ", userType=" + userType
				+ ", addDate=" + addDate + ", modifyDate=" + modifyDate
				+ ", organisationName=" + organisationName
				+ ", individualName=" + individualName + ", voice=" + voice
				+ ", deliveryPoint=" + deliveryPoint + ", city=" + city
				+ ", administrativeArea=" + administrativeArea
				+ ", postalCode=" + postalCode + ", country=" + country
				+ ", electronicMailAddress=" + electronicMailAddress
				+ ", role=" + role + "]";
	}

	/**
	 * 资源组织信息
	 * @return
	 */
	public String toStringOrganizor() {
		return "User [ organisationName=" + organisationName
				+ ", individualName=" + individualName + ", voice=" + voice
				+ ", deliveryPoint=" + deliveryPoint + ", city=" + city
				+ ", administrativeArea=" + administrativeArea
				+ ", postalCode=" + postalCode + ", country=" + country
				+ ", electronicMailAddress=" + electronicMailAddress
				+ ", role=" + role + "]";
	}

	

}
